﻿using CTP.CRM.Core.Common.Enums;

namespace CTP.CRM.Repository.Position.Entitys
{
    /// <summary>
    /// 岗位信息表
    /// </summary>
    [SugarTable("t_position")]
    public class PositionEntity : IFullAuditedBasicEntitys
    {
        ///<summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
        public int PositionId { get; set; }

        ///<summary>
        /// 岗位名称
        ///</summary>
        [SugarColumn(ColumnName = "Name")]
        public string Name { get; set; }

        ///<summary>
        /// 岗位英文名
        ///</summary>
        [SugarColumn(ColumnName = "EnName")]
        public string EnName { get; set; }

        ///<summary>
        /// 岗位编号
        ///</summary>
        [SugarColumn(ColumnName = "Code")]
        public string Code { get; set; }

        ///<summary>
        /// 岗位类型
        ///</summary>
        [SugarColumn(ColumnName = "Type")]
        public int PositionType { get; set; }

        ///<summary>
        /// 岗位业务类型
        ///</summary>
        [SugarColumn(ColumnName = "BizType")]
        public byte? BizType { get; set; }

        ///<summary>
        /// 岗位职级
        ///</summary>
        [SugarColumn(ColumnName = "Level")]
        public PositionLevel Level { get; set; }

        ///<summary>
        /// 指定HR
        ///</summary>
        [SugarColumn(ColumnName = "SpecifyHr")]
        public bool? SpecifyHr { get; set; }

        ///<summary>
        /// HRBP
        ///</summary>
        [SugarColumn(ColumnName = "HRBP")]
        public bool? HRBP { get; set; }

        ///<summary>
        /// 区域财务
        ///</summary>
        [SugarColumn(ColumnName = "RegionalFinance")]
        public bool? RegionalFinance { get; set; }

        ///<summary>
        /// 排序值
        ///</summary>
        [SugarColumn(ColumnName = "Sort")]
        public int Sort { get; set; }

        ///<summary>
        /// 是否启用
        ///</summary>
        [SugarColumn(ColumnName = "IsEnable")]
        public bool IsEnable { get; set; }

        ///<summary>
        /// 描述
        ///</summary>
        [SugarColumn(ColumnName = "Description")]
        public string Description { get; set; }
    }
}
